import request from "@/config/request/index";
import type {Order, OrderPageParam} from "@/api/order/model";

enum API {
    root = '/trade/order'
}

/**
 * 获取订单分页
 */
export function getOrderPageList(params: OrderPageParam) {
    return request.get<BaseResult<PageResult<Order>>>({
        url: `${API.root}/page`, params: params
    })
}
